package com.learn.project2.bean;

import java.util.ArrayList;
import java.util.List;

public class NewMarketRolePermissionGrandsonExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public NewMarketRolePermissionGrandsonExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDetailNameIsNull() {
            addCriterion("detail_name is null");
            return (Criteria) this;
        }

        public Criteria andDetailNameIsNotNull() {
            addCriterion("detail_name is not null");
            return (Criteria) this;
        }

        public Criteria andDetailNameEqualTo(String value) {
            addCriterion("detail_name =", value, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameNotEqualTo(String value) {
            addCriterion("detail_name <>", value, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameGreaterThan(String value) {
            addCriterion("detail_name >", value, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameGreaterThanOrEqualTo(String value) {
            addCriterion("detail_name >=", value, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameLessThan(String value) {
            addCriterion("detail_name <", value, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameLessThanOrEqualTo(String value) {
            addCriterion("detail_name <=", value, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameLike(String value) {
            addCriterion("detail_name like", value, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameNotLike(String value) {
            addCriterion("detail_name not like", value, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameIn(List<String> values) {
            addCriterion("detail_name in", values, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameNotIn(List<String> values) {
            addCriterion("detail_name not in", values, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameBetween(String value1, String value2) {
            addCriterion("detail_name between", value1, value2, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailNameNotBetween(String value1, String value2) {
            addCriterion("detail_name not between", value1, value2, "detailName");
            return (Criteria) this;
        }

        public Criteria andDetailLabelIsNull() {
            addCriterion("detail_label is null");
            return (Criteria) this;
        }

        public Criteria andDetailLabelIsNotNull() {
            addCriterion("detail_label is not null");
            return (Criteria) this;
        }

        public Criteria andDetailLabelEqualTo(String value) {
            addCriterion("detail_label =", value, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelNotEqualTo(String value) {
            addCriterion("detail_label <>", value, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelGreaterThan(String value) {
            addCriterion("detail_label >", value, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelGreaterThanOrEqualTo(String value) {
            addCriterion("detail_label >=", value, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelLessThan(String value) {
            addCriterion("detail_label <", value, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelLessThanOrEqualTo(String value) {
            addCriterion("detail_label <=", value, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelLike(String value) {
            addCriterion("detail_label like", value, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelNotLike(String value) {
            addCriterion("detail_label not like", value, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelIn(List<String> values) {
            addCriterion("detail_label in", values, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelNotIn(List<String> values) {
            addCriterion("detail_label not in", values, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelBetween(String value1, String value2) {
            addCriterion("detail_label between", value1, value2, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailLabelNotBetween(String value1, String value2) {
            addCriterion("detail_label not between", value1, value2, "detailLabel");
            return (Criteria) this;
        }

        public Criteria andDetailApiIsNull() {
            addCriterion("detail_api is null");
            return (Criteria) this;
        }

        public Criteria andDetailApiIsNotNull() {
            addCriterion("detail_api is not null");
            return (Criteria) this;
        }

        public Criteria andDetailApiEqualTo(String value) {
            addCriterion("detail_api =", value, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiNotEqualTo(String value) {
            addCriterion("detail_api <>", value, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiGreaterThan(String value) {
            addCriterion("detail_api >", value, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiGreaterThanOrEqualTo(String value) {
            addCriterion("detail_api >=", value, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiLessThan(String value) {
            addCriterion("detail_api <", value, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiLessThanOrEqualTo(String value) {
            addCriterion("detail_api <=", value, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiLike(String value) {
            addCriterion("detail_api like", value, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiNotLike(String value) {
            addCriterion("detail_api not like", value, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiIn(List<String> values) {
            addCriterion("detail_api in", values, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiNotIn(List<String> values) {
            addCriterion("detail_api not in", values, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiBetween(String value1, String value2) {
            addCriterion("detail_api between", value1, value2, "detailApi");
            return (Criteria) this;
        }

        public Criteria andDetailApiNotBetween(String value1, String value2) {
            addCriterion("detail_api not between", value1, value2, "detailApi");
            return (Criteria) this;
        }

        public Criteria andSonIdIsNull() {
            addCriterion("son_id is null");
            return (Criteria) this;
        }

        public Criteria andSonIdIsNotNull() {
            addCriterion("son_id is not null");
            return (Criteria) this;
        }

        public Criteria andSonIdEqualTo(Integer value) {
            addCriterion("son_id =", value, "sonId");
            return (Criteria) this;
        }

        public Criteria andSonIdNotEqualTo(Integer value) {
            addCriterion("son_id <>", value, "sonId");
            return (Criteria) this;
        }

        public Criteria andSonIdGreaterThan(Integer value) {
            addCriterion("son_id >", value, "sonId");
            return (Criteria) this;
        }

        public Criteria andSonIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("son_id >=", value, "sonId");
            return (Criteria) this;
        }

        public Criteria andSonIdLessThan(Integer value) {
            addCriterion("son_id <", value, "sonId");
            return (Criteria) this;
        }

        public Criteria andSonIdLessThanOrEqualTo(Integer value) {
            addCriterion("son_id <=", value, "sonId");
            return (Criteria) this;
        }

        public Criteria andSonIdIn(List<Integer> values) {
            addCriterion("son_id in", values, "sonId");
            return (Criteria) this;
        }

        public Criteria andSonIdNotIn(List<Integer> values) {
            addCriterion("son_id not in", values, "sonId");
            return (Criteria) this;
        }

        public Criteria andSonIdBetween(Integer value1, Integer value2) {
            addCriterion("son_id between", value1, value2, "sonId");
            return (Criteria) this;
        }

        public Criteria andSonIdNotBetween(Integer value1, Integer value2) {
            addCriterion("son_id not between", value1, value2, "sonId");
            return (Criteria) this;
        }

        public Criteria andEnableIsNull() {
            addCriterion("enable is null");
            return (Criteria) this;
        }

        public Criteria andEnableIsNotNull() {
            addCriterion("enable is not null");
            return (Criteria) this;
        }

        public Criteria andEnableEqualTo(Boolean value) {
            addCriterion("enable =", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotEqualTo(Boolean value) {
            addCriterion("enable <>", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThan(Boolean value) {
            addCriterion("enable >", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThanOrEqualTo(Boolean value) {
            addCriterion("enable >=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThan(Boolean value) {
            addCriterion("enable <", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThanOrEqualTo(Boolean value) {
            addCriterion("enable <=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableIn(List<Boolean> values) {
            addCriterion("enable in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotIn(List<Boolean> values) {
            addCriterion("enable not in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableBetween(Boolean value1, Boolean value2) {
            addCriterion("enable between", value1, value2, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotBetween(Boolean value1, Boolean value2) {
            addCriterion("enable not between", value1, value2, "enable");
            return (Criteria) this;
        }

        public Criteria andMethodIsNull() {
            addCriterion("method is null");
            return (Criteria) this;
        }

        public Criteria andMethodIsNotNull() {
            addCriterion("method is not null");
            return (Criteria) this;
        }

        public Criteria andMethodEqualTo(String value) {
            addCriterion("method =", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodNotEqualTo(String value) {
            addCriterion("method <>", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodGreaterThan(String value) {
            addCriterion("method >", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodGreaterThanOrEqualTo(String value) {
            addCriterion("method >=", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodLessThan(String value) {
            addCriterion("method <", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodLessThanOrEqualTo(String value) {
            addCriterion("method <=", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodLike(String value) {
            addCriterion("method like", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodNotLike(String value) {
            addCriterion("method not like", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodIn(List<String> values) {
            addCriterion("method in", values, "method");
            return (Criteria) this;
        }

        public Criteria andMethodNotIn(List<String> values) {
            addCriterion("method not in", values, "method");
            return (Criteria) this;
        }

        public Criteria andMethodBetween(String value1, String value2) {
            addCriterion("method between", value1, value2, "method");
            return (Criteria) this;
        }

        public Criteria andMethodNotBetween(String value1, String value2) {
            addCriterion("method not between", value1, value2, "method");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}